﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Volo.Abp.Authorization.Permissions;

namespace ABPIdentityDemo.Auth
{
    public class MyFirstPermissionDefinitionProvider : PermissionDefinitionProvider
    {
        public override void Define(IPermissionDefinitionContext context)
        {
            var myGroup = context.AddGroup("ABPIdentityDemo");
            var myPermission = myGroup.AddPermission("WeatherPermission");
            myPermission.AddChild("Weather_Get01");
            myPermission.AddChild("Weather_Get02");
        }
    }
}
